package com.xc.smart.service;

import com.xc.smart.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.smart.entity.User;
import com.xc.smart.entity.dto.GoodsDto;
import com.xc.smart.utlis.R;

/**
 * 
 *   @author mtl
 *   2021/6/23
 */   
public interface GoodsService extends IService<Goods>{


    R spike(User user, GoodsDto dto);

    R buy(User user, GoodsDto dto);

    Goods check_Inventory(Integer goodsId);

     void reduce_Inventory(Integer goodsId,Integer number);

}
